#include "appviewimpl.h"

CAppViewImpl::CAppViewImpl(void)
{
}
CAppViewImpl::~CAppViewImpl(void)
{
    logi("CAppViewImpl::~CAppViewImpl");
}
HRESULT CAppViewImpl::Init(IBase* pRot, IBase* pBase)
{
    rc_error(pRot != NULL, E_FAIL);
    return pRot->QueryInterface(IID_IRot, (void**)&m_pRot);
}
HRESULT CAppViewImpl::Uninit()
{
    HRESULT hr = S_OK;

    m_pRot.dispose();

    return hr;
}
HRESULT CAppViewImpl::Start(_pid_t pid, unsigned int type)
{
    HRESULT hr = S_OK;

    //_lComPtr<INet> pINet;
    // m_pRot->GetObject(CLSID_INet, IID_INet, (IBase**)&pINet.m_p);
    // rc_error(pINet.m_p != INULL, E_FAIL);

    // pINet->CreateProtocol(protocol_https, (IBase**)&m_pIHttp);
    //  m_pIHttp->Open("110.242.68.3", "/", 443);
    // CSemHandle handle;
    // handle.Wait();

    return hr;
}
HRESULT CAppViewImpl::Stop(unsigned int exit)
{
    HRESULT hr = S_OK;

    return hr;
}
